<%
String status = "";
if(request.getSession().getAttribute("status") != null){
	status = (String)request.getSession().getAttribute("status");
}else if(!status.equals("ingelogd")){
	response.sendRedirect("index.jsp?message=Log+eerst+in+om+verder+te+gaan");
}
//session.removeAttribute("status");
%>
<%@page import="java.sql.*" %>
<%@page import="model.*" %>
<%@page import="domein.*" %>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<form method="post" action="search.jsp">
				<input type="submit" value="Search" />
				<input type="text" id="searchField" name="id" placeholder="Search"></input>
			</form>

 <form>
	<table>
    <%
    
    String value=request.getParameter("id");
  	SearchIO sIo = new SearchIO();
  	ResultSet rs = sIo.zoek(value);
    while(rs.next()){ 
        %>
        
        <table>
 <tr>
 <td> <%=rs.getString("naam")%></td>
 <td> <%=rs.getString("datum")%></td>
 <td> <%=rs.getString("contactpersoon")%></td>
 </tr>
 </table>
        
   
    
          <%
    }
    %>
    </table>
    </form>
</body>
</html>